package org.posta.data.user;


public class User
{
    
    private final String userName;
    
    private String       password;
    
    public User(String userName, String password)
    {
        this.userName = userName;
        this.password = password;
    }
    
    public String getUserName()
    {
        return userName;
    }
    
    @Override
    public boolean equals(Object obj)
    {
        if (obj instanceof User)
        {
            User other = (User) obj;
            return userName.equals(other.userName);
        }
        return false;
    }
    
    @Override
    public String toString()
    {
        return String.format("[User: %s]", userName);
    }
    
}
